//#include <stdio.h>
//#include <pthread.h>
//#include <unistd.h>
//#include <stdlib.h>
//#include <sched.h>
//#include <linux/unistd.h>
//#include <sys/syscall.h>
//#include <errno.h>
#include <iostream>

using namespace std;

int main() {
  int i(1);
  __sync_fetch_and_or(&i, 10);
  cout << i << endl;  
}
